package com.csdj.game.mapper;

import com.csdj.game.entity.User;
import org.apache.ibatis.annotations.Param;

public interface UserMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(User record);

    int insertSelective(User record);

    User selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);

    User login(@Param("username")String username,@Param("password")String password);

    /**
     *检查用户名是否存在
     * @param username
     * @return
     */
    int findCountByUsername(String username);
}